/**
 * 个人管理页面下子路由
 */


import UserManage from "../views/DeviceAdminControl/subViews/UserManage";
import DAManufacturerInfo from "../views/DeviceAdminControl/subViews/ManufacturerManage/DAManufacturerInfo";
import AddManufacturer from "../views/DeviceAdminControl/subViews/ManufacturerManage/AddManufacturer";
import ModifyManufacturer from "../views/DeviceAdminControl/subViews/ManufacturerManage/ModifyManufacturer";
import AddDevice from "../views/DeviceAdminControl/subViews/DeviceManage/AddDeviceByDeviceAdmin";
import DeviceInfo from "../views/DeviceAdminControl/subViews/DeviceManage/DeviceInfo";
import ModifyDevice from "../views/DeviceAdminControl/subViews/DeviceManage/ModifyDevice/ModifyDevice";
import DeviceKnowledgeInfo from "../views/DeviceAdminControl/subViews/DeviceKnowledgeManage/DeviceKonwledgeInfo";
import AddDeviceKnowledge from "../views/DeviceAdminControl/subViews/DeviceKnowledgeManage/AddDeviceKnowledge";
import ModifyDeviceKnowledge from "../views/DeviceAdminControl/subViews/DeviceKnowledgeManage/ModifyDeviceKonwledge";
import ReviewArticleInfo from "../views/DeviceAdminControl/subViews/ReviewArticleManage/ReviewArticleInfo";
import AddReviewArticle from "../views/DeviceAdminControl/subViews/ReviewArticleManage/AddReviewArticle";
import ModifyReviewArticle from "../views/DeviceAdminControl/subViews/ReviewArticleManage/ModifyReviewArticle";
import { UserJoinManufacturerManage, UserLeaveManufacturerManage } from "../views/DeviceAdminControl/subViews";

export type personalRoutesType = {
    component: any,
    path: string,
    exact?: boolean
}

export const personalRoutes: personalRoutesType[] = [
    //个人信息管理
    {
        path: 'userManage',
        component: UserManage
    },
    //厂商信息
    {
        path: 'manufacturerInfo',
        component: DAManufacturerInfo
    },
    //设备信息
    {
        path: 'deviceInfo',
        component: DeviceInfo
    },
    //增加设备
    {
        path: 'addDevice',
        component: AddDevice
    },
    //编辑设备
    {
        path: 'modifyDevice',
        component: ModifyDevice
    },

    //增加厂商
    {
        path: 'addManufacturer',
        component: AddManufacturer
    },

    //编辑厂商
    {
        path: 'modifyManufacturer/:id?',
        component: ModifyManufacturer
    },

    //设备知识信息
    {
        path: 'deviceKnowledgeInfo',
        component: DeviceKnowledgeInfo
    },

    //新增设备知识
    {
        path: 'addDeviceKnowledge',
        component: AddDeviceKnowledge
    },

    //编辑设备知识
    {
        path: 'modifyDeviceKnowledge/:id?',
        component: ModifyDeviceKnowledge
    },

    //测评文章信息
    {
        path: 'reviewArticleInfo',
        component: ReviewArticleInfo
    },

    //新增测评文章
    {
        path: 'addReviewArticle',
        component: AddReviewArticle
    },

    //编辑测评文章
    {
        path: 'modifyReviewArticle/:id?',
        component: ModifyReviewArticle
    },
    //用户加入厂商
    {
        path: 'userJoinManufacturer',
        component: UserJoinManufacturerManage
    },
    //用户离开厂商
    {
        path: 'userLeaveManufacturer',
        component: UserLeaveManufacturerManage
    }


]
